function previousPage() {
	document.forms[1]["searchParameters.page"].value = page - 1;
	document.forms[1].submit();
}

function nextPage() {
	document.forms[1]["searchParameters.page"].value = page + 1;
	document.forms[1].submit();
}

function OpenWindow(url) {
	window.open(url,'mywin', 'left=200,top=20,width=1100,height=700,toolbar=0,resizable=1,scrollbars=1')
}
function changeImage(url) {
	imageSet = true;
	if (url != '') {
		document.getElementById("imageUrl").innerHTML = "<img src='" + url +"'>";
	}
}
function clearImage() {
	imageSet = false;
	document.getElementById("imageUrl").innerHTML = "";
	document.getElementById("mapUrl").innerHTML = "";
}
function showMap(mapString) {
	if (mapString != '') {
		document.getElementById("mapUrl").innerHTML = mapString;
	}
	else {
		document.getElementById("mapUrl").innerHTML = "";
	}
}
function showComments(commentString) {
	if (commentString != '') {
		document.getElementById("comments").innerHTML = commentString;
	}
	else {
		document.getElementById("comments").innerHTML = "";
	}
}
function saveSearchResults(redirect) {
	document.forms[1].action = "SaveSearchResults.action";
	document.forms[1].redirect.value = redirect;
	document.forms[1].submit();
}